package com.cn.jiyun;


import com.cn.jiyun.entity.pojo.CarouselImages;
import com.jiyun.entity.pojo.ScenicTickets;
import com.jiyun.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "service-jdian")
public interface JingDianClient {
    @GetMapping("scenicTickets/findAll")
    public Result<List<ScenicTickets>> findAll(@RequestParam(required = false) String scenicName,
                                               @RequestParam(required = false) String sort);

    @GetMapping("carouselImages/lunboUrl")
    public Result<List<CarouselImages>> lunboUrl();
}
